GtkTextView: Use *some* extra size for horizontal scrolling
authorAlexander Larsson <alexl@redhat.com>
Mon, 26 Aug 2013 19:16:27 +0000 (21:16 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 26 Aug 2013 19:17:45 +0000 (21:17 +0200)
Horizontal scrolling is unusual, but specifying some extra offscreen
space for it in free in the normal case where the viewport is the
same width as the canvas anyway, so lets do it.

gtk/gtktextview.c

index 8a96a5642775ff9a36f70a35c927dabf37cbaa28..092e322d2570e485755ba4899b08bf09b83f521c 100644 (file)
@@ -3701,7 +3701,7 @@ gtk_text_view_size_allocate (GtkWidget *widget,
 
   DV(g_print(G_STRLOC"\n"));
 
-  _gtk_pixel_cache_set_extra_size (priv->pixel_cache, 0,
+  _gtk_pixel_cache_set_extra_size (priv->pixel_cache, 64,
                                    allocation->height / 2);
 
   gtk_widget_get_allocation (widget, &widget_allocation);